/* ===== ADMIN PANEL STYLES ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f5f5f5;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

/* ===== HEADER ===== */
.admin-header {
  background: #1a1a1a;
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h1 {
  font-size: 1.8rem;
  font-weight: 600;
}

.admin-header h1 i {
  color: #c5a059;
  margin-right: 10px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn-refresh, .btn-logout {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-refresh {
  background: #c5a059;
  color: white;
}

.btn-refresh:hover {
  background: #a78642;
}

.btn-logout {
  background: #dc3545;
  color: white;
}

.btn-logout:hover {
  background: #c82333;
}

/* ===== LOGIN SECTION ===== */
.login-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.login-card h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.login-card h2 i {
  color: #c5a059;
}

.login-card > p {
  color: #666;
  margin-bottom: 30px;
}

.login-card input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.login-card input:focus {
  outline: none;
  border-color: #c5a059;
}

.btn-login {
  width: 100%;
  padding: 15px;
  background: #c5a059;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-login:hover {
  background: #a78642;
  transform: translateY(-2px);
}

.login-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #999;
}

.login-note i {
  color: #c5a059;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 40px 0;
}

/* ===== STATISTICS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card i {
  font-size: 2.5rem;
  color: #c5a059;
  margin-bottom: 15px;
}

.stat-card h3 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.stat-card p {
  color: #666;
  font-size: 1rem;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  background: white;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tab-btn {
  flex: 1;
  padding: 15px 20px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn:hover {
  background: #f5f5f5;
}

.tab-btn.active {
  background: #c5a059;
  color: white;
}

/* ===== REVIEWS CONTAINER ===== */
.reviews-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 20px;
  min-height: 400px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.loading {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 1.2rem;
}

.loading i {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
  color: #c5a059;
}

.no-reviews {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.no-reviews i {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
  color: #ddd;
}

/* ===== REVIEW CARD ===== */
.review-card {
  background: #fafafa;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s;
}

.review-card:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.review-card.pending {
  border-left: 5px solid #ffc107;
}

.review-card.approved {
  border-left: 5px solid #28a745;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 15px;
}

.review-info h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #1a1a1a;
}

.review-meta {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: #666;
  flex-wrap: wrap;
}

.review-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.review-stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.review-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.review-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.review-badge.approved {
  background: #d4edda;
  color: #155724;
}

.review-badge.printing {
  background: #d1ecf1;
  color: #0c5460;
  margin-left: 10px;
}

.review-badge.saxophone {
  background: #e2d6f3;
  color: #5a3472;
  margin-left: 10px;
}

.review-text {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin: 15px 0;
  line-height: 1.6;
  color: #333;
  font-style: italic;
}

.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-approve, .btn-reject, .btn-delete-review {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-approve {
  background: #28a745;
  color: white;
}

.btn-approve:hover {
  background: #218838;
}

.btn-reject {
  background: #ffc107;
  color: #1a1a1a;
}

.btn-reject:hover {
  background: #e0a800;
}

.btn-delete-review {
  background: #dc3545;
  color: white;
}

.btn-delete-review:hover {
  background: #c82333;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.modal-content h3 i {
  color: #dc3545;
  margin-right: 10px;
}

.modal-content p {
  margin-bottom: 30px;
  color: #666;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-cancel, .btn-delete {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-cancel {
  background: #6c757d;
  color: white;
}

.btn-cancel:hover {
  background: #5a6268;
}

.btn-delete {
  background: #dc3545;
  color: white;
}

.btn-delete:hover {
  background: #c82333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .admin-header .container {
    flex-direction: column;
    gap: 15px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tabs {
    flex-direction: column;
  }

  .review-header {
    flex-direction: column;
    gap: 10px;
  }

  .review-actions {
    flex-direction: column;
  }

  .btn-approve, .btn-reject, .btn-delete-review {
    width: 100%;
    justify-content: center;
  }
}